import { getSearchList } from "@/api"

export default {
  namespaced:true,
  state() {
    return {
      searchList: {}
    }
  },
  mutations: {
    setSearchList(state, result) {
      state.searchList = result
    }
  },
  actions: {
    async getSearchList({ commit }, data = {}) {
      const result = await getSearchList(data)
      commit('setSearchList',result.data)
    }
  }
}